<?
TITRE_JEU("Panneau de marchandage");

$query="SELECT count(*) FROM tmp_commerce WHERE commerce_user_id1=$_PERSO_ID";
$resultat2=mysql_query($query);
$tmp2=mysql_fetch_row($resultat2);

$query="SELECT count(*) FROM tmp_commerce WHERE commerce_user_id2=$_PERSO_ID";
$resultat2=mysql_query($query);
$tmp1=mysql_fetch_row($resultat2);




?>

<table width="100%" border="0" cellpadding="0" cellspacing="0" CLASS="fondblack">
  <tr> 
    <td width="100%"> <table width="100%" border="0" cellspacing="1">
        <tr> 
          <td CLASS="TD3"> <p align="center"><strong><a target="_self" href="<? echo "include.php?p=merchantilisme&choix2=1$SID"; ?>"
              >Mes demandes </a></strong></p></td>
          <td CLASS="TD3"> <div align="center"><a target="_self" href="<? echo "include.php?p=merchantilisme&choix2=2$SID"; ?>" ><strong>Mes
              receptions</strong></a></div></td>
        </tr>
        <tr> 
          <td CLASS="TD1"><div align="center"><? echo $tmp2[0]; ?></div></td>
          <td CLASS="TD1"><div align="center"><? echo $tmp1[0]; ?></div></td>
        </tr>
      </table>
      <div align="center"><font color="#FFFF00"><em></em></font><font color="#FFFF00"><em></em></font><font color="#FFFF00"><em></em></font><font color="#FFFF00"><em></em></font></div></td>
  </tr>
</table>
<?

IF (!empty($choix2)){
		SWITCH ($choix2){
			CASE 1:
			     	REQUIRE("marchandage/marchandage_demande.php");
			BREAK;
			CASE 2:
			    	REQUIRE("marchandage/marchandage_demande2.php");
			BREAK;
		}//fin du SWITCH ($choix2){
}//fin duIF (!empty($choix2)){ 

?>
